package org.example.myleet.p498;

import org.example.myleet.Utils.Assert;
import org.example.myleet.Utils.JsonUtils;
import org.example.myleet.Utils.Parser;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue("[1,2,4,7,5,3,6,8,9]".equals(JsonUtils.toJson(solution.findDiagonalOrder(Parser.parse("[[1,2,3],[4,5,6],[7,8,9]]")))));
        Assert.isTrue("[1,2,3,4]".equals(JsonUtils.toJson(solution.findDiagonalOrder(Parser.parse("[[1,2],[3,4]]")))));
//        Assert.isTrue("[1,2,3,4]".equals(JsonUtils.toJson(solution.findDiagonalOrder(Parser.parse("[[1,2],[3,4],[5,6],[7,8],[9,10]]")))));
    }
}
